import java.util.*;

public class TuioCocoaFiducialData extends Vector
{
   public TuioCocoaFiducialData()
   {
      super();
   }

   public void setData( float piX, float piY, float piA )
   {
      super.clear();
      addFloat( piX );
      addFloat( piY );
      addFloat( piA );          
   }
   
   public void addFloat( float piData )
   {
      super.add( new Float( piData ) );
   }
   
   public float getFloat( int piIndex )
   {
      Float loData = (Float)super.get( piIndex );
      if( loData == null )
         return (float)0;
      
      return loData.floatValue();
   }
   
   // Called from Cocoa
   // 
   public double getDouble( int piIndex )
   {
      Float loData = (Float)super.get( piIndex );
      if( loData == null )
         return (double)0;
      
      return loData.doubleValue();
   }
   
   // Called from Cocoa
   // 
   public int count()
   {
       return super.size();
   }
}
